﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UFIDA.U8.Portal.Proxy.editors;
using UFIDA.U8.Portal.Proxy.supports;
using UFIDA.U8.PUB;

namespace UFIDA.U8.WAZH.BANKDETAIL
{
    public class SyncLoginable : NetLoginable
    {
        public override object CallFunction(string cMenuId, string cMenuName, string cAuthId, string cCmdLine)
        {

            try
            {
                if (cMenuName.Equals("银行交易流水"))
                {
                    INetUserControl mycontrol = new BankDetailUserControl();

                    mycontrol.Title = "银行交易流水";

                    base.ShowEmbedControl(mycontrol, cMenuId, true);
                } 
            }
            catch (Exception e)
            {
                LogHelper.WriteLine(e.Message);
                MessageBox.Show(e.Message);
            }

            return null;
        }

        public override bool SubSysLogin()
        {
            return base.SubSysLogin();

            //return false;
        }

        public override bool SubSysLogOff()
        {
            return base.SubSysLogOff();

            //return true;
        }
    }
}
